#ifndef VIDEO_PLAYBACK_H
#define VIDEO_PLAYBACK_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui {
class Video_playback;
}
QT_END_NAMESPACE

enum StackedWidgetPage
{
    HomePage = 0,
    MyselfPage = 1,
    AdminPage = 2,
    UploadPage = 3
};

class Video_playback : public QMainWindow
{
    Q_OBJECT

public:
    ~Video_playback();
    static Video_playback* getInstance();
private slots:
    void onSwitchPage(int pageId);

private:
    Video_playback(QWidget *parent = nullptr);
    // 设置界面的UI部分
    void initUI();

    // 绑定信号槽
    void connectSignalAndslot();

    // 重置页面切换按钮
    void resetswitchBtnInfo(int pageId);

    // 鼠标单击
    void mousePressEvent(QMouseEvent *event);

    // 鼠标移动事件
    void mouseMoveEvent(QMouseEvent *event);
private:
    Ui::Video_playback *ui;

    QPoint dragPos;

    // 添加单列实例
    static Video_playback* instance;
};
#endif // VIDEO_PLAYBACK_H
